x86/mm: Ensure liveness of pages involved in a guest page table walk
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 24 Nov 2011 17:05:25 +0000 (17:05 +0000)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 24 Nov 2011 17:05:25 +0000 (17:05 +0000)
commitb61d7d4e30f35c3e07f4323a32e1b1f3e610154b
tree8d9b1b9de504db1412f8315d3788d5a151852078
parentab375de6c2120adbfd19255159183f8422dfe6a4
x86/mm: Ensure liveness of pages involved in a guest page table walk

Instead of risking deadlock by holding onto the gfn's acquired during
a guest page table walk, acquire an extra reference within the get_gfn/
put_gfn critical section, and drop the extra reference when done with
the map. This ensures liveness of the map, i.e. the underlying page
won't be paged out.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/guest_walk.c